package cn.factorymethod;

/**
 * Created by jt on 2018/3/12.
 */
public class Test {
    public static void main(String[] args) {
        Factory factory = new BMWFactory() ;
        factory.getCar().getCarName();

        Factory factory1 = new BenZFactory() ;
        factory1.getCar().getCarName();
    }
}
